<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link type="text/css" rel="stylesheet" href="/stylesheet/main.css" >
  <script type="text/javascript" src="/stylesheet/autocom.js"></script>
  
  <script type="text/javascript">
	  var max_per_page = 3 
		var total_word = {{ total_words.total_words }}
		var total_page = Math.floor( total_word / max_per_page) + 1
  </script>   
</head>

<body>

<p class="show_result_error">找不到東西...</p>
<p class="show_result_ok"></p>	
<div class="search_result">
	{% if search_results %}	  
		{% for search_result in search_results %}
			<div class="word_main" id={{ search_result.key }}>
          <div class="word_image">字: {{ search_result.Word }} </div>
            <span id="show_poll">
            	<a name="like_count" id="{{ search_result.key }}">   <b> {{ search_result.Like }}    </b></a>  喜歡,
              <a name="dislike_count" id="{{ search_result.key }}"><b> {{ search_result.Dislike }} </b></a> 不喜歡
              <a name="like" class="pollword" href="#" id=  {{ search_result.key }}>Like</a>
              <a name="dislike" class="pollword" href="#" id=  {{ search_result.key }}>Dislike</a>
            </span>
            <div class="show_line">解釋: {{ search_result.Define }} </div>
            <div class="show_line">例句: {{ search_result.Example }} </div>
            <div class="show_line">建立者: {{ search_result.Creator }} <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/39/Taiwan-icon.svg/17px-Taiwan-icon.svg.png" alt="" scale="0"></div>
            <span class="show_line">
            	建立時間: {{ search_result.Created }}
              <a href="http://localhost/search/?term={{ search_result.Word }}&id="{{ search_result.key }}"" name="fb_share" type="button_count">__分享__</a>   
            </span>
            <hr/>
					</div> <!-- word_image end -->
     </div><!-- word_main end-->
	  {% endfor %}	  
	{% endif %}	
</body> <!-- search_result end -->
</html>

